package com.wnx.job.modules.ums.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author by wangnaixing
 * @Description
 * @Date 2021/12/20 16:57
 */
@Data
public class DictParam implements Serializable {
    /**
     * 自增主键
     */
    @ApiModelProperty(value = "自增主键")
    private Long id;

    /**
     * 字典键
     */
    @ApiModelProperty(value = "字典键")
    @NotBlank(message = "字典键不能为空！")
    private String dictKey;

    /**
     * 字典值
     */
    @ApiModelProperty(value = "字典值")
    @NotBlank(message = "字典的值不能为空！")
    private String dictVal;

    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号")
    @NotNull(message = "字典的排序号不能为空")
    private Integer sort;

    /**
     * 状态0未激活1激活
     */
    @ApiModelProperty(value = "状态0未激活1激活")
    @NotNull(message = "字典的状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "字典类型ID")
    @NotNull(message = "字典的类型不能为空")
    private Long typeId;

    /**
     * 父节点ID
     */
    @ApiModelProperty(value = "父节点ID")
    private Long parentId;

}
